import request from '@/utils/request'

// 添加
export function add(data) {
    return request({
        url: 'api/goods/save',
        method: 'post',
        data
    })
}

// 获取所有财报信息
export function listEarnings() {
    return request({
        url: 'api/earnings/getEarnings',
        method: 'get'
    })
}
// 获取所有部门信息(父ID)
export function listDepartment() {
    return request({
        url: 'api/earnings/getDepartment',
        method: 'get'
    })
}